package com.jd.onlinequery.controller;


import com.jd.onlinequery.common.utils.StringUtil;
import com.jd.onlinequery.common.web.WebserviceInvocationResult;
import com.jd.onlinequery.common.web.WebserviceInvokationParameter;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/index")
public class IndexController {

	private static final Logger logger = LoggerFactory.getLogger(IndexController.class);

	@Autowired
	private RestTemplate restTemplate;


	@RequestMapping(value = "/test", method = {RequestMethod.POST,RequestMethod.GET})
	public WebserviceInvocationResult getTeacherPageHome(@RequestBody WebserviceInvokationParameter parameter) throws Exception{
		WebserviceInvocationResult webserviceInvocationResult = new WebserviceInvocationResult(false, null);
		Map<String, Object> paramMap = parameter.getJsonBizParamMap();
		Long ada = Long.parseLong(paramMap.get("ada").toString());
		String code = paramMap.get("code").toString();
		try {
			logger.info(code);
			paramMap.put("reqest_url","/test");
			webserviceInvocationResult.setResult(paramMap);
			webserviceInvocationResult.setSucceeded(true);
		}
		catch (Exception e1) {
			logger.error("invoke getTeacherPageHome fail.", e1);
			webserviceInvocationResult.setErrorCode("TEACHER_PAGEHOME_EXCEPTION");
			webserviceInvocationResult.setErrorMessage("获取讲师首页信息失败！"+e1.getMessage());
		}
		return webserviceInvocationResult;
	}





	@RequestMapping(value = "/queryPost", method = {RequestMethod.POST,RequestMethod.GET})
	public WebserviceInvocationResult queryPost(@RequestBody WebserviceInvokationParameter parameter) throws Exception{
		WebserviceInvocationResult webserviceInvocationResult = new WebserviceInvocationResult(false, null);
		try {
			Map<String, Object> paramMap = parameter.getJsonBizParamMap();
			String url = String.valueOf(paramMap.get("url"));
			String id = String.valueOf(paramMap.get("id"));

			Map<String, String> map= new HashMap<>();
			if(StringUtil.isNotBlank(id) && id.equals("foshanjiujiang")){
				map.put("officeCode",String.valueOf(paramMap.get("officeCode")));
				String noType = String.valueOf(paramMap.get("noType"));
				if(StringUtil.isNotBlank(noType) && noType.equals("so")) {
					map.put("soNo",String.valueOf(paramMap.get("no")));
				}else{
					map.put("containerNo",String.valueOf(paramMap.get("no")));
				}
			}



			HttpHeaders tempHeaders = new HttpHeaders();
			tempHeaders.setContentType(MediaType.APPLICATION_JSON_UTF8);

			HttpEntity request = new HttpEntity<>(map,tempHeaders);

			ResponseEntity<String> response = restTemplate.postForEntity( url, request , String.class);


			String body = response.getBody();
			logger.info(body);
			webserviceInvocationResult.setResult(body);
			webserviceInvocationResult.setSucceeded(true);
		}
		catch (Exception e1) {
			logger.error("invoke query fail.", e1);
			webserviceInvocationResult.setSucceeded(false);
			webserviceInvocationResult.setErrorCode("EXCEPTION");
			webserviceInvocationResult.setErrorMessage("查询结果失败！"+e1.getMessage());
		}
		return webserviceInvocationResult;
	}



	@RequestMapping(value = "/query", method = {RequestMethod.POST,RequestMethod.GET})
	public WebserviceInvocationResult query(@RequestBody WebserviceInvokationParameter parameter) throws Exception{
		WebserviceInvocationResult webserviceInvocationResult = new WebserviceInvocationResult(false, null);
		try {
            Map<String, Object> paramMap = parameter.getJsonBizParamMap();
            String url = paramMap.get("url").toString();
            ResponseEntity<String> responseEntity = restTemplate.getForEntity(url, String.class);
            String body = responseEntity.getBody();
            logger.info("url："+url);
            logger.info("body："+body);
            paramMap.put("body",body);
			webserviceInvocationResult.setResult(paramMap);
			webserviceInvocationResult.setSucceeded(true);
		}
		catch (Exception e1) {
			logger.error("invoke query fail.", e1);
            webserviceInvocationResult.setSucceeded(false);
			webserviceInvocationResult.setErrorCode("EXCEPTION");
			webserviceInvocationResult.setErrorMessage("查询结果失败！"+e1.getMessage());
		}
		return webserviceInvocationResult;
	}


	@RequestMapping(value = "/queryHtml", method = {RequestMethod.POST,RequestMethod.GET})
	public WebserviceInvocationResult queryHtml(@RequestBody WebserviceInvokationParameter parameter) throws Exception{
		WebserviceInvocationResult webserviceInvocationResult = new WebserviceInvocationResult(false, null);
		try {
			Map<String, Object> paramMap = parameter.getJsonBizParamMap();
			String name = String.valueOf(paramMap.get("name"));
			String no = String.valueOf(paramMap.get("no"));
			String noType = String.valueOf(paramMap.get("noType"));
			if(StringUtil.isNotBlank(name) && name.equals("foshansanshuigang"))
			{
				String data = "";
				if(StringUtil.isNotBlank(noType) && noType.equals("so"))
				{
					data="__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=%2FwEPDwUJMTk4NDU5NzY0D2QWAgIBD2QWAgIBDzwrAAgBAA8WBB4OQWN0aXZlVGFiSW5kZXhmHg5fIVVzZVZpZXdTdGF0ZWdkFgJmD2QWAgIBD2QWBGYPZBYCZg9kFgJmD2QWBAIBD2QWAmYPZBYCZg9kFgJmD2QWAmYPZBYCZg9kFgJmD2QWAmYPZBYCZg9kFgJmD2QWAgIBD2QWAmYPZBYEZg9kFgJmD2QWAmYPZBYCZg9kFgICAQ9kFgJmD2QWAgIBDzwrAAYBAA8WAh4FVmFsdWUFATFkZAIBD2QWAmYPZBYCZg9kFgJmD2QWAgIBD2QWAmYPZBYCAgEPPCsABgEADxYCHwIFC0NOSVUxMTgzNzU0ZGQCAw88KwAhAwAPFgIeD0RhdGFTb3VyY2VCb3VuZGdkBg9kEBYLZgIBAgICAwIEAgUCBgIHAggCCQIKFgs8KwAMAgAWAh4LR2xvYmFsSW5kZXhmCzwrAAUBABYGHglTb3J0SW5kZXgCAh4JU29ydE9yZGVyCyl6RGV2RXhwcmVzcy5EYXRhLkNvbHVtblNvcnRPcmRlciwgRGV2RXhwcmVzcy5EYXRhLnYxNi4yLCBWZXJzaW9uPTE2LjIuNi4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1Ymx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wgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1iODhkMTc1NGQ3MDBlNDlhFTwrAAYBBRQrAAJkZGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgcFEEFTUHhQYWdlQ29udHJvbDEFREFTUHhQYWdlQ29udHJvbDEkQVNQeEZvcm1MYXlvdXQxJEFTUHhGb3JtTGF5b3V0MV9UYWJfMV9Db25kaXRpb24kREREBT1BU1B4UGFnZUNvbnRyb2wxJEFTUHhGb3JtTGF5b3V0MSRBU1B4Rm9ybUxheW91dDFfVGFiXzFfU2VhcmNoBR5BU1B4UGFnZUNvbnRyb2wxJEFTUHhHcmlkVmlldzEFREFTUHhQYWdlQ29udHJvbDEkQVNQeEZvcm1MYXlvdXQyJEFTUHhGb3JtTGF5b3V0Ml9UYWJfMV9Db25kaXRpb24kREREBT1BU1B4UGFnZUNvbnRyb2wxJEFTUHhGb3JtTGF5b3V0MiRBU1B4Rm9ybUxheW91dDJfVGFiXzFfU2VhcmNoBR5BU1B4UGFnZUNvbnRyb2wxJEFTUHhHcmlkVmlldzLlRjTgUu1WRyTJJsTYEddUg0btXtm%2FW9U42mzwn3tXGQ%3D%3D&__EVENTVALIDATION=%2FwEdAAS%2F2pQLtTqDOEj8uWV%2Bjroo5tBVQB%2FetO1iD9MZSDo%2FTNYM6QgHI94sm7SJdjh625WdLMRidc4qnFyrP8GgvmDrDkEHh5pcmhISKvw4%2BryKCjBVGvwBmadgIKDS9fnQpVw%3D&ASPxPageControl1=%7B%26quot%3BactiveTabIndex%26quot%3B%3A0%7D&ASPxPageControl1_ASPxFormLayout1_ASPxFormLayout1_Tab_1_Condition_VI=0&ASPxPageControl1%24ASPxFormLayout1%24ASPxFormLayout1_Tab_1_Condition=%E6%8C%89%E5%8D%95%E8%AF%81%E5%8F%B7&ASPxPageControl1%24ASPxFormLayout1%24ASPxFormLayout1_Tab_1_Condition%24DDDState=%7B%26quot%3BwindowsState%26quot%3B%3A%26quot%3B0%3A0%3A-1%3A105%3A106%3A1%3A168%3A52%3A1%3A0%3A0%3A0%26quot%3B%7D&ASPxPageControl1%24ASPxFormLayout1%24ASPxFormLayout1_Tab_1_Condition%24DDD%24L=0&ASPxPageControl1%24ASPxFormLayout1%24ASPxFormLayout1_Tab_1_ConditionContext={#NO}&ASPxPageControl1%24ASPxFormLayout1%24ASPxFormLayout1_Tab_1_Search=%E6%9F%A5%E8%AF%A2&ASPxPageControl1%24ASPxGridView1=%7B%26quot%3Bkeys%26quot%3B%3A%5B%5D%2C%26quot%3BcallbackState%26quot%3B%3A%26quot%3B6jxIeAB2A04HZg%2FXjYpwJGN0NV8suMS1ykcwfZzRNUyY6wFbTBKaW79mxof%2F%2FGYflBH8GftI9%2BzJeisNj1Cswsadctb8bnPyC8shOitA%2FqF%2FTDV%2Fb07fQThSoXpL8t6PZydBGz0HSa%2FtFlAn8yTuM3TANLwcTTX8jEs0uiTDlzXS47P060YjXVQytZd0z%2FEULi%2FrqJxh0Vdx2GZLaYS6OWzPzCZavXFXYfBg%2Fu7Igr5q8elNOiP7IatfO1PdW2XfmWZZuglrhNoyp5QeKGXJCkfXZDu8Kbm1Ny9cvCWm%2BxmihcuXXmk3mbfSVph4OHwGOkQGdllR0oJT6AAPj8osSzy%2F9mBnY8zcRJ0QZBWtbQgy5IhESFeDSCfQiKkFE4aArBByemQD36YC8UO7p2s1hFeHNiDeeop61zrLMrKdHm55UgDrJGcVVVVoMG6obXH0YDTMJ83YaY6l%2BmQH9pJEM6j%2Fl%2BIKt9hvQNr0r8%2B52y4nqp%2F%2BOSzuG80nm5X95xrm0o2mZeO0CxIr0Jp2c3OzxBUIlah6EjXOF385aBsi8T55UZdH6llbWKxOHTeOU4SXfYXlK2gBWc4ZwDowhEvgr7RSMd3x0G6HDHHxwuBkqqRG2iGP%2FEwoetIcswEAj14g4RrXFyp0ggUgoosZO7%2F4Zs29qg27HO4Bil%2BdN9PZT0hxhZLnPvgiXHQ30LEcgrYR3FL2khwKji8puyq7DXvhV4QQ9gPuhTY9j%2FBNojbeQMgqZMKZe83Fe%2FNvLWVFPrTejRTD5HQs2KYrIYGKNk9DzrBk6wBm%2FqqSa4YMSGMYDxQkp9Epxub8gQY9xNKr12safNcQrl0zkxP05XpPx2UZkSJUOllE7FRS2gNex%2Fq%2FCONKsnAt5jEgiIhDAi8BXjL50zEzJt1aZ9EUsBlRh1CFBAd9fZMRiG8A8%2BBX%2BG310r8%2FpbHKGVc8K9%2BBJ7%2BRzJtoHR9QlfDE8BGk46fD9HHLnmFaGvwJ5wN%2B%2FA%2BCy4v2VgXERvQ2kB6aBI2JjySgEIORgG6lu7EiwIEd0bq51ddsaOmMCu0hVir3MB5e5ypdPfuDApCyAXy3uus3NOT4YUfhY8hRiYNTfo1IO%2FiorqeRx8Pd6BLB9IwUuYL9YrMJp%2F4ZztYxEVK0Bld40oBM7UvseWadwBjCo6emPmFkSoZUrBDBER748AfBNXOp%2FN8OGJCKInAagBq9G3PmCjNsaCAK9Tp3ReYpSwDFV%2BeAPT9iSGGE9QdS7h2kFZK3oh%2B3Aec7JKsQBG%2FvF%2BlzMz9zK4HPbMNe32zu0qln%2Bq%2FZ7DiHdoYq0%2BSEYKQ0%2Fnxa%2B4l1svMHzTsRmzg2R1nPzzK17%2F2KK6%2BRT0bLTnRUubiRQpAoE0XTbHmCn6etb207wYGpLzI%3D%26quot%3B%2C%26quot%3Bselection%26quot%3B%3A%26quot%3B%26quot%3B%7D&ASPxPageControl1_ASPxFormLayout2_ASPxFormLayout2_Tab_1_Condition_VI=&ASPxPageControl1%24ASPxFormLayout2%24ASPxFormLayout2_Tab_1_Condition=&ASPxPageControl1%24ASPxFormLayout2%24ASPxFormLayout2_Tab_1_Condition%24DDDState=%7B%26quot%3BwindowsState%26quot%3B%3A%26quot%3B0%3A0%3A-1%3A0%3A0%3A0%3A-10000%3A-10000%3A1%3A0%3A0%3A0%26quot%3B%7D&ASPxPageControl1%24ASPxFormLayout2%24ASPxFormLayout2_Tab_1_Condition%24DDD%24L=&ASPxPageControl1%24ASPxFormLayout2%24ASPxFormLayout2_Tab_1_ConditionContext=&ASPxPageControl1%24ASPxGridView2=%7B%26quot%3Bkeys%26quot%3B%3A%5B%5D%2C%26quot%3BcallbackState%26quot%3B%3A%26quot%3BCh8m7cK0L3iYCMLrqNQW4mMxwc%2B%2BykAA3jZlTfiR8YxFNR1zdffcUN%2FsYMTJxcp4uv5iSoPQA%2BRgUFo4MP%2BuHt03I0Rr3sGRcN%2B9Sze%2B3RasELb1any8LJnstkfAMgymgIx%2FDtMXE%2FEpzPW95p17QL%2FDIeH6S9H0EKPmFcBhrTt20rBHLVMkS2BblHTZpKUmHlPrf9LdAN9HybZks5JcpaO6%2Bb4d55bliSrAo8Vn%2FuzcvrNBOXLjULa3n8v9Nb7qcv1ascy%2Bj1n4caNbZ9VU6gCf19ijlzP1nIEUHIWrMJ2EKAjmon4vWM8iDzlb0qh3iKF%2BlMB3lujFL25qmVSvkGI87qjA%2BAthRsUtahv96f8%3D%26quot%3B%2C%26quot%3Bselection%26quot%3B%3A%26quot%3B%26quot%3B%7D&DXScript=1_247%2C1_138%2C1_241%2C1_164%2C1_141%2C1_135%2C1_239%2C1_242%2C1_177%2C1_162%2C1_170%2C1_143%2C1_176%2C1_161%2C1_233%2C1_159%2C1_231%2C1_165%2C1_151%2C1_149%2C1_201%2C1_187%2C1_196%2C1_190%2C1_195&DXCss=1_23%2C1_28%2C1_31%2C1_29%2C1_3%2C1_9%2C1_10%2C1_8%2C1_14%2C1_13";
					//data  = "__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=%2FwEPDwUKMTg3NzgxODA2NQ9kFgICAw9kFgICAQ88KwAIAQAPFgIeDl8hVXNlVmlld1N0YXRlZ2QWAmYPZBYCAgEPZBYEZg9kFgJmD2QWAmYPZBYEAgEPZBYCZg9kFgJmD2QWAmYPZBYCZg9kFgJmD2QWAmYPZBYCZg9kFgJmD2QWAmYPZBYCAgEPZBYCZg9kFgRm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AAQIuvbuav3tgQAxOIuH2S2f5tBVQB%2FetO1iD9MZSDo%2FTNYM6QgHI94sm7SJdjh625WdLMRidc4qnFyrP8GgvmDrOnO3bmrdmgXOr4a1rkV1UhEEHMNPt0apcfgBIVQSfFo%3D&ASPxPageControl1=%7B%26quot%3BactiveTabIndex%26quot%3B%3A0%7D&ASPxPageControl1_ASPxFormLayout1_ASPxFormLayout1_Tab_1_Condition_VI=0&ASPxPageControl1%24ASPxFormLayout1%24ASPxFormLayout1_Tab_1_Condition=%E6%8C%89%E5%8D%95%E8%AF%81%E5%8F%B7&ASPxPageControl1%24ASPxFormLayout1%24ASPxFormLayout1_Tab_1_Condition%24DDDState=%7B%26quot%3BwindowsState%26quot%3B%3A%26quot%3B0%3A0%3A-1%3A122%3A107%3A1%3A168%3A64%3A1%3A0%3A0%3A0%26quot%3B%7D&ASPxPageControl1%24ASPxFormLayout1%24ASPxFormLayout1_Tab_1_Condition%24DDD%24L=0&ASPxPageControl1%24ASPxFormLayout1%24ASPxFormLayout1_Tab_1_ConditionContext={#NO}&ASPxPageControl1%24ASPxFormLayout1%24ASPxFormLayout1_Tab_1_Search=%E6%9F%A5%E8%AF%A2&ASPxPageControl1%24ASPxGridView1=%7B%26quot%3Bkeys%26quot%3B%3A%5B%5D%2C%26quot%3BcallbackState%26quot%3B%3A%26quot%3B%2Fo2ZTpsK%2Fp0d2xUgjTv9MD8QRfD%2BNMSclhVzREVpXDZKmMlb2%2FEo3SsMxOaZ6B9nENwHPxsOoErVX9%2FHfbes5VNuUzffZbQj87u5lcQL%2B2kM6ylJW%2FAXJ0vnjRY2QGmExZt3A9Ggm8GYuo0XpbCa3iz0Y9rH1d1c09yBC5OOTkddY%2FusY23PkjWQw22w7PfVNhUsHtcwuJ0BR4RIkgtqaXZPSUfgF1BuNvJBYgNFAQmuooUy3DM%2FJaeE90FYfdIXCrk6IBSoxLm7oorBXeyjgqoTAa7OH70E5PRuUAifQm4vPTSHKhiSHcdO1m6VHfzQEOd2u%2BuKINCAYg%2FZOdXnH0nbyHevR5FYrNWyYxrx%2FH9O4fH40bLhvvibm7Qrq1JpEjWAZd6Oexg%2Bovf%2Bom9NAQ%3D%3D%26quot%3B%2C%26quot%3Bselection%26quot%3B%3A%26quot%3B%26quot%3B%7D&ASPxPageControl1_ASPxFormLayout2_ASPxFormLayout2_Tab_1_Condition_VI=&ASPxPageControl1%24ASPxFormLayout2%24ASPxFormLayout2_Tab_1_Condition=&ASPxPageControl1%24ASPxFormLayout2%24ASPxFormLayout2_Tab_1_Condition%24DDDState=%7B%26quot%3BwindowsState%26quot%3B%3A%26quot%3B0%3A0%3A-1%3A0%3A0%3A0%3A-10000%3A-10000%3A1%3A0%3A0%3A0%26quot%3B%7D&ASPxPageControl1%24ASPxFormLayout2%24ASPxFormLayout2_Tab_1_Condition%24DDD%24L=&ASPxPageControl1%24ASPxFormLayout2%24ASPxFormLayout2_Tab_1_ConditionContext=&ASPxPageControl1%24ASPxGridView2=%7B%26quot%3Bkeys%26quot%3B%3A%5B%5D%2C%26quot%3BcallbackState%26quot%3B%3A%26quot%3BZZc4FLBOjLfzCBB%2B4FEFhcQ7hRFKwO%2F1rzRgHwO%2FRSGGK7NWdX5f05yyZL3JkY5Iav0AomrPwWrj0jNmSiooZ9ciLdNwrrV5yFhe3t49P6I%2B2dBA14%2BpvlT3h7jRaMFmoyvmYmVQZqsDoCqE7jG0OBb9ACPELWDs%2B5Qw66z%2BtEpI%2FdhCRJLmpN6sDLjj0wyoWAGcR9Gzei5W0CQyqdNu0ZpjshNEupSdLUfMOPWZ6JHCpUt%2BAqr9Q2U%2Ff%2FO6iu8u0yEtZTmRljbQq15M9tL%2FXrtmu8PVWoUcr7k2yTaQQ4pAphPW0Moxntd52olKCZjqfMjKYHzSdstE3jhy5N4AE999blLjizjDFWz5iydxslU%3D%26quot%3B%2C%26quot%3Bselection%26quot%3B%3A%26quot%3B%26quot%3B%7D&DXScript=1_247%2C1_138%2C1_241%2C1_164%2C1_141%2C1_135%2C1_239%2C1_242%2C1_177%2C1_162%2C1_170%2C1_143%2C1_176%2C1_161%2C1_233%2C1_159%2C1_231%2C1_165%2C1_151%2C1_149%2C1_201%2C1_187%2C1_196%2C1_190%2C1_195&DXCss=1_23%2C1_28%2C1_31%2C1_29%2C1_3%2C1_9%2C1_10%2C1_8%2C1_14%2C1_13&ASPxPageControl1%24ASPxFormLayout1%24ASPxFormLayout1_Tab_1_Search=";
				}else
				{
					data ="__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=%2FwEPDwUJMTk4NDU5NzY0D2QWAgIBD2QWAgIBDzwrAAgBAA8WBB4OQWN0aXZlVGFiSW5kZXhmHg5fIVVzZVZpZXdTdGF0ZWdkFgJmD2QWAgIBD2QWBGYPZBYCZg9kFgJmD2QWBAIBD2QWAmYPZBYCZg9kFgJmD2QWAmYPZBYCZg9kFgJmD2QWAmYPZBYCZg9kFgJmD2QWAgIBD2QWAmYPZBYEZg9kFgJmD2QWAmYPZBYCZg9kFgICAQ9kFgJmD2QWAgIBDzwrAAYBAA8WAh4FVmFsdWUFATFkZAIBD2QWAmYPZBYCZg9kFgJmD2QWAgIBD2QWAmYPZBYCAgEPPCsABgEADxYCHwIFC0NOSVUxMTgzNzU0ZGQCAw88KwAhAwAPFgIeD0RhdGFTb3VyY2VCb3VuZGdkBg9kEBYLZgIBAgICAwIEAgUCBgIHAggCCQIKFgs8KwAMAgAWAh4LR2xvYmFsSW5kZXhmCzwrAAUBABYGHglTb3J0SW5kZXgCAh4JU29ydE9yZGVyCyl6RGV2RXhwcmVzcy5EYXRhLkNvbHVtblNvcnRPcmRlciwgRGV2RXhwcmVzcy5EYXRhLnYxNi4yLCBWZXJzaW9uPTE2LjIuNi4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI4OGQxNzU0ZDcwMGU0OWEBHgpHcm91cEluZGV4Av%2F%2F%2F%2F8PPCsADAIAFgIfBAIBCzwrAAUBABYGHwUC%2F%2F%2F%2F%2F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b3N0QmFja0tleV9fFgcFEEFTUHhQYWdlQ29udHJvbDEFREFTUHhQYWdlQ29udHJvbDEkQVNQeEZvcm1MYXlvdXQxJEFTUHhGb3JtTGF5b3V0MV9UYWJfMV9Db25kaXRpb24kREREBT1BU1B4UGFnZUNvbnRyb2wxJEFTUHhGb3JtTGF5b3V0MSRBU1B4Rm9ybUxheW91dDFfVGFiXzFfU2VhcmNoBR5BU1B4UGFnZUNvbnRyb2wxJEFTUHhHcmlkVmlldzEFREFTUHhQYWdlQ29udHJvbDEkQVNQeEZvcm1MYXlvdXQyJEFTUHhGb3JtTGF5b3V0Ml9UYWJfMV9Db25kaXRpb24kREREBT1BU1B4UGFnZUNvbnRyb2wxJEFTUHhGb3JtTGF5b3V0MiRBU1B4Rm9ybUxheW91dDJfVGFiXzFfU2VhcmNoBR5BU1B4UGFnZUNvbnRyb2wxJEFTUHhHcmlkVmlldzLlRjTgUu1WRyTJJsTYEddUg0btXtm%2FW9U42mzwn3tXGQ%3D%3D&__EVENTVALIDATION=%2FwEdAAS%2F2pQLtTqDOEj8uWV%2Bjroo5tBVQB%2FetO1iD9MZSDo%2FTNYM6QgHI94sm7SJdjh625WdLMRidc4qnFyrP8GgvmDrDkEHh5pcmhISKvw4%2BryKCjBVGvwBmadgIKDS9fnQpVw%3D&ASPxPageControl1=%7B%26quot%3BactiveTabIndex%26quot%3B%3A0%7D&ASPxPageControl1_ASPxFormLayout1_ASPxFormLayout1_Tab_1_Condition_VI=1&ASPxPageControl1%24ASPxFormLayout1%24ASPxFormLayout1_Tab_1_Condition=%E6%8C%89%E7%AE%B1%E5%8F%B7&ASPxPageControl1%24ASPxFormLayout1%24ASPxFormLayout1_Tab_1_Condition%24DDDState=%7B%26quot%3BwindowsState%26quot%3B%3A%26quot%3B0%3A0%3A-1%3A0%3A0%3A0%3A-10000%3A-10000%3A1%3A0%3A0%3A0%26quot%3B%7D&ASPxPageControl1%24ASPxFormLayout1%24ASPxFormLayout1_Tab_1_Condition%24DDD%24L=1&ASPxPageControl1%24ASPxFormLayout1%24ASPxFormLayout1_Tab_1_ConditionContext={#NO}&ASPxPageControl1%24ASPxFormLayout1%24ASPxFormLayout1_Tab_1_Search=%E6%9F%A5%E8%AF%A2&ASPxPageControl1%24ASPxGridView1=%7B%26quot%3Bkeys%26quot%3B%3A%5B%5D%2C%26quot%3BcallbackState%26quot%3B%3A%26quot%3BPa%2BDwwlMdNcU1v52w6YqirZ57qdnanzyanpXOMa5PqpxnHtUeXs%2BrXp0TXuuSwLwiPSNjr1yMMZn%2BwgA%2FElVUD81wTRBngKKrA6i%2BTKTe%2FE2nyYrA7BrOS0dAOUQYLyDsd2SDxeYHJoJhoeVjTCSy0jFsJpbUXZR0185jNkBy9F3R3M%2FzJ7IO8NV65FxBingXvM%2FHotBXTBvRb2EtLNm%2FIJOJrSQjd4PIW0GFhLazkyh6UxJH5C2nv%2BL0waPujRK5hQkERibfZ8rTQZB3OjCmk9XFuyJSEybw3n%2FGaon3oynb486LpkU1SJBuC0aiW6Ad7FkrEP%2BnyF8q8LJJy5G7JKEww0%2B4mIlIPKsXGwDSBLykWuliw%2B73fO5PD%2FoZbK44Z%2FTBRlD%2FnS%2Fak3E%2BiFJz3Oxmh052vMMnfI9otbm7AMgpK6NWBE1t8oyvP806LNPCyb4u8Bo2c5UZJRCtMbwv264UWHYf4I9oeuFTYWyrtGSMuM45fN%2BkWOJqd2M0IKeAgtlOgVA89ZrjSZiED1HVs8ldDFRMF%2FwL7xA%2Fv%2FxDAAYtXgi5gDACGwWcpL1L57khIwycpq8oavYmLBPjGWzi8Ngydt0UpS5QWXXS43I6RblJcOvLC1G0hlgISgkxkaZafhTJqwEXleHEtLd%2BdqkrFJ6jpt5HoJA3XRkjvtzgEtBJ%2BbYFvsz7uLV8sbYGAKSBUHGnfRI0YUCbEsrL9jkl3e%2BVlNqbIE98Z7QK3gsY1lbhbB%2BS%2B9v%2FdUCBjhj2rlyNerKv3J8NVaNTujnaGdPV5u30OBEWGMUCZyZy9iyx0yP16vkdCdajlzf7AGHEGiUkkXYRAJ4T76jc%2B%2F9aWtuUmgLTz%2B96cEEg6NXKVa%2F1GYNGnSBglsIMzOSMio3MauYNj%2FtoPNkB8R0GeE%2Bs8xUdtWIAHLjYBfu44QS12BkSTV7ID8apPLBiW7Qm66%2FUoBSNMuTlDjY2emIHA%2F7tuLLqLm6vMFrcf%2FpG6LKW6lcWB%2F3aVp%2F0VMmTgViECex3AqCnaVVJ0eVanrtV85AY22rnDodXai0DcJ%2FJPt6XkDxdqVdutugX8mKWEM3EYXyIJ7K98d5WcQu5h7j8sz%2Fq3V98N4wXoJEfd4%2FK3XuDvqL0vLg1RaGhcebwqLJ5FptYx0%2BrpMLTpDo8SAf4ePMOnH5TMttVWxr7vROGjYwLbxE9MP9DzPRV71O7Jiipw810vOaeAjYXrvKCMVYfq2%2BVPnMqDzeIkEJTOTImygkDFIBsS3JqFjg7yD5J9nCTXohO1QGVYyzDEWfmjbMk4XqvpTPPEY51hI7jMcnQtzd5MGThQ3q4npXVfyhZZj5oUNwShy8LyC3H5HKwUPRYA5P0cL5sU9aqjmR3smWHA1xD2nJhjg%3D%26quot%3B%2C%26quot%3Bselection%26quot%3B%3A%26quot%3B%26quot%3B%7D&ASPxPageControl1_ASPxFormLayout2_ASPxFormLayout2_Tab_1_Condition_VI=&ASPxPageControl1%24ASPxFormLayout2%24ASPxFormLayout2_Tab_1_Condition=&ASPxPageControl1%24ASPxFormLayout2%24ASPxFormLayout2_Tab_1_Condition%24DDDState=%7B%26quot%3BwindowsState%26quot%3B%3A%26quot%3B0%3A0%3A-1%3A0%3A0%3A0%3A-10000%3A-10000%3A1%3A0%3A0%3A0%26quot%3B%7D&ASPxPageControl1%24ASPxFormLayout2%24ASPxFormLayout2_Tab_1_Condition%24DDD%24L=&ASPxPageControl1%24ASPxFormLayout2%24ASPxFormLayout2_Tab_1_ConditionContext=&ASPxPageControl1%24ASPxGridView2=%7B%26quot%3Bkeys%26quot%3B%3A%5B%5D%2C%26quot%3BcallbackState%26quot%3B%3A%26quot%3B%2Bi2uxjHisiq4n5Q4%2BO9d0Edxsm37c%2F1FgG43fqnLL8h05mu8HKtlOipgreP10g6xMiw022Ar9Xmjhwyf7HQ8oufO2pA4nCIQaIduJUQ4zl0Ioqy0E1XuoEqq55M1tBjtQBO8msEs7rVWhp3cBszTLV6qYHUFs3ZsvL2FnxcmuUJL8MDH4nJ6mXeN6We3623nR0xxqUHWuyX0zAXyC8aPYQBuN37YJXrb%2BxrZvQY9PcJtpgOg%2B%2FPfCowArQUbDFPCEHEnhZgXV%2BTSTcJK3M3qZBF2blCdiuL%2FvZFRKdQENBlYOOLIWU55dbGx2eWjbur1fx%2BnCyMhzegM5C89FlpNkjndCAOCzIn96dwNdxt7NKg%3D%26quot%3B%2C%26quot%3Bselection%26quot%3B%3A%26quot%3B%26quot%3B%7D&DXScript=1_247%2C1_138%2C1_241%2C1_164%2C1_141%2C1_135%2C1_239%2C1_242%2C1_177%2C1_162%2C1_170%2C1_143%2C1_176%2C1_161%2C1_233%2C1_159%2C1_231%2C1_165%2C1_151%2C1_149%2C1_201%2C1_187%2C1_196%2C1_190%2C1_195&DXCss=1_23%2C1_28%2C1_31%2C1_29%2C1_3%2C1_9%2C1_10%2C1_8%2C1_14%2C1_13";
					//data ="__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=%2FwEPDwUKMTg3NzgxODA2NQ9kFgICAw9kFgICAQ88KwAIAQAPFgIeDl8hVXNlVmlld1N0YXRlZ2QWAmYPZBYCAgEPZBYEZg9kFgJmD2QWAmYPZBYEAgEPZBYCZg9kFgJmD2QWAmYPZBYCZg9kFgJmD2QWAmYPZBYCZg9kFgJmD2QWAmYPZBYCAgEPZBYCZg9kFgRmD2QWAmYPZBYCZg9kFgJmD2QWAgIBD2QWAmYPZBYCAgEPPCsABgEADxYCHgVWYWx1ZQUBMGRkAgEPZBYCZg9kFgJmD2QWAmYPZBYCAgEPZBYCZg9kFgICAQ88KwAGAQAPFgIfAQU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mDrqWoec01itESpaKPbecr9QKXJ54cOxVburxYDZ%2F2ZgJ4%3D&ASPxPageControl1=%7B%26quot%3BactiveTabIndex%26quot%3B%3A0%7D&ASPxPageControl1_ASPxFormLayout1_ASPxFormLayout1_Tab_1_Condition_VI=1&ASPxPageControl1%24ASPxFormLayout1%24ASPxFormLayout1_Tab_1_Condition=%E6%8C%89%E7%AE%B1%E5%8F%B7&ASPxPageControl1%24ASPxFormLayout1%24ASPxFormLayout1_Tab_1_Condition%24DDDState=%7B%26quot%3BwindowsState%26quot%3B%3A%26quot%3B0%3A0%3A-1%3A104%3A107%3A1%3A168%3A54%3A1%3A0%3A0%3A0%26quot%3B%7D&ASPxPageControl1%24ASPxFormLayout1%24ASPxFormLayout1_Tab_1_Condition%24DDD%24L=1&ASPxPageControl1%24ASPxFormLayout1%24ASPxFormLayout1_Tab_1_ConditionContext={#NO}&ASPxPageControl1%24ASPxFormLayout1%24ASPxFormLayout1_Tab_1_Search=%E6%9F%A5%E8%AF%A2&ASPxPageControl1%24ASPxGridView1=%7B%26quot%3Bkeys%26quot%3B%3A%5B%5D%2C%26quot%3BcallbackState%26quot%3B%3A%26quot%3BsdNRxgG%2F4T7d19DBggBYt5eBEUF03qfF5MedNKKZC0TN1GzbrL1gJLoekTM3d%2BVhlJWB8cIsqlZi%2BGYBGDdfXiV2seZBKnqu4vwnqnyGEWt8vB5QrqAJTEPB9hsUbTggTuMfWwbWBRV%2F%2F%2Ftuw2ksuh6Y4XXQSacl3wQYNBCdauMTwYvwZhLfoln7D95S66QFY5rKXX352flTpKR08JtHwz6H5EkFp5DKqGOV55LWtxY%2BGwpBCpPJznG3gOnBLlV69cLR1RvTyJSpuknwd%2F5Gluxb58%2Bg%2B6DiSlBM%2Bnp3orBFUmhDpjcdOmp8Y1HnjsPvhEI6ewHEIAgK2nxEbqI%2F5MHyhAddTD5EgSrbTQ4%2Buriy%2BuvYjTjdp1ft%2Bf7HFrpEkBD7QfNgE1R0N8aV%2BYRf%2F422UNW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JVJC4VO%2BiXRhQqOiUvQTcD0D1NQMl1BO4zJRir8LXWpDg%2BkZupvzpsGG8QtD%2B1yJ2AmB%2B%2BDeWLgIlH00IUo32PlQwaYqo%2BzmFg4Z6NajL5xJHpXz%2BAwVHbacNQzSFGv8Bv4gtdMokXIMTk%2BqG%2F%2FFbfPDZWFiPmMFmHQY9kEiibpRcIj%2BbdPe%2BqQbmkL5FPufd4eNcJojAz3pBEP%2BXPhKt8IKJ6Qi7cQtVT7KQ3ZMKYgy25uy0Arv1DICYoCmUSz8T3ZUd0RsCi2WgOuLnXeKjusyteHIjR2yAx4g2vrJ6zebXrckdtWOlr8q0LGENKHkrr9f9uEH0QsJLoUPH0IB8srJsyiLEKnnT1R28JLRfQntV1KRp64rQKs3FrIY5DZO6LQRV9Y5rGpuMVULeNLj2bgxvQ9KelTj73cHr1b7XDJ9tMaYpiKE%2FhrJYZ9yUBEAifmWnHB8Cd1lW%2BLgkgHSaVUOZpVeerM5crZU%2FeH4ONt4tA5nvURRSF%26quot%3B%2C%26quot%3Bselection%26quot%3B%3A%26quot%3B%26quot%3B%7D&ASPxPageControl1_ASPxFormLayout2_ASPxFormLayout2_Tab_1_Condition_VI=&ASPxPageControl1%24ASPxFormLayout2%24ASPxFormLayout2_Tab_1_Condition=&ASPxPageControl1%24ASPxFormLayout2%24ASPxFormLayout2_Tab_1_Condition%24DDDState=%7B%26quot%3BwindowsState%26quot%3B%3A%26quot%3B0%3A0%3A-1%3A0%3A0%3A0%3A-10000%3A-10000%3A1%3A0%3A0%3A0%26quot%3B%7D&ASPxPageControl1%24ASPxFormLayout2%24ASPxFormLayout2_Tab_1_Condition%24DDD%24L=&ASPxPageControl1%24ASPxFormLayout2%24ASPxFormLayout2_Tab_1_ConditionContext=&ASPxPageControl1%24ASPxGridView2=%7B%26quot%3Bkeys%26quot%3B%3A%5B%5D%2C%26quot%3BcallbackState%26quot%3B%3A%26quot%3BP6RwcnrMC1VIMjmC0IRIKOt5YWRAbuOBH3HNUmyhmylYIa54u%2F6akOnyHEDy1fcnDBRpOri%2Ffk5S%2F%2F3c76ioOBK9KFhvMkB5OFbmAt%2FI5XpOIDFGXJMaOxBg9taReMFVwXBicVgO19FwRW35sNydIscaS2q06pp01WKkk6wJnXuHyFmMhZKKPfEZJer%2BomrUAVR50%2BkpeShFt%2FYxkH5ZJZ0TxO3kpS8R1DpXnK84bO73h0rMSpvWJDGqYZFezSaYisRMT3b6CqYnEu%2FpUpe%2FVlNYDP%2F3z%2BYqA0ZL7HSKMHRXz6AeruB5ApagaImUFMlgybTZBp0sLTc7A6tqJCuGroUiJirXgdRZqWfDsE%2FwkPo%3D%26quot%3B%2C%26quot%3Bselection%26quot%3B%3A%26quot%3B%26quot%3B%7D&DXScript=1_247%2C1_138%2C1_241%2C1_164%2C1_141%2C1_135%2C1_239%2C1_242%2C1_177%2C1_162%2C1_170%2C1_143%2C1_176%2C1_161%2C1_233%2C1_159%2C1_231%2C1_165%2C1_151%2C1_149%2C1_201%2C1_187%2C1_196%2C1_190%2C1_195&DXCss=1_23%2C1_28%2C1_31%2C1_29%2C1_3%2C1_9%2C1_10%2C1_8%2C1_14%2C1_13&ASPxPageControl1%24ASPxFormLayout1%24ASPxFormLayout1_Tab_1_Search=";




				}
				data = data.replace("{#NO}",no);

					Document doc = Jsoup.connect("http://219.135.26.94:6008/PublicSearch.aspx").header("Content-Type","application/x-www-form-urlencoded;charset=UTF-8")
							.requestBody(data).post();
					String resultHtml = doc.getElementById("ASPxPageControl1_ASPxGridView1").html();
					resultHtml= resultHtml.replace("<img class=\"dxGridView_gvHeaderSortUp dx-vam\" src=\"/DXR.axd?r=1_35-mvGWe\" alt=\"Ascending\" style=\"margin-left:5px;\">","");
					resultHtml= resultHtml.replace("<img class=\"dxGridView_gvHeaderSortDown dx-vam\" src=\"/DXR.axd?r=1_35-mvGWe\" alt=\"Descending\" style=\"margin-left:5px;\">","");
				resultHtml= resultHtml.replace("<table id=","<table border=\"1px\" id=");



					paramMap.put("body",resultHtml);
					logger.info(resultHtml);

			}
			webserviceInvocationResult.setResult(paramMap);
			webserviceInvocationResult.setSucceeded(true);
		}
		catch (Exception e1) {
			logger.error("invoke query fail.", e1);
			webserviceInvocationResult.setSucceeded(false);
			webserviceInvocationResult.setErrorCode("EXCEPTION");
			webserviceInvocationResult.setErrorMessage("查询结果失败！"+e1.getMessage());
		}
		return webserviceInvocationResult;
	}








}
